package com.tarena.lbs.basic.web.mapper;

import com.tarena.lbs.pojo.basic.dos.BusinessDO;
import com.tarena.lbs.pojo.basic.query.BusinessQuery;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BusinessMapper {
    List<BusinessDO> selectBusinessByQuery(BusinessQuery businessQuery);

    Integer insert(BusinessDO businessDO);

    @Select("select count(*) from tarena_lbs_basic.lbs_business where id=#{businessId}")
    long selectCountById(Integer businessId);

    @Select("select * from tarena_lbs_basic.lbs_business where id=#{id}")
    BusinessDO selectBusinessById(Integer id);
}
